Skip to content

Delete the TypedArray polyfill #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Delete the TypedArray polyfill #36

merged 1 commit into from
Sep 21, 2021

Conversation

jamesdbrock
Copy link
Member

@jamesdbrock jamesdbrock commented Sep 21, 2021

The polyFill() for TypedArray was causing problems with purs bundle
v0.14.4. #34

The link which the polyFill() function referred to is dead.

This link shows what appears to be a fully-functional TypedArray
polyfill, which is not what we had in our library. Was our polyFill()
even working at all? I don't know.

https://github.com/zloirock/core-js#ecmascript-typed-arrays

This library will now pass this test for purs 0.14.4, and still passes for 0.14.3.

Resolves #34

There is also #35 to resolve the same issue. We should choose one. I prefer this solution.

@jamesdbrock
Copy link
Member Author

Decision: we're going to do this PR, and also add instructions in the readme for users to add their own polyfills.

The `polyFill()` for TypedArray was causing problems with `purs bundle`
v0.14.4. #34

The reference link which the `polyFill()` function comments referred to is dead.

Add a section on polyfills to the README, with new reference links.
@jamesdbrock jamesdbrock merged commit 3104c59 into main Sep 21, 2021
@jamesdbrock jamesdbrock deleted the polyfill-delete branch September 21, 2021 16:05
@JordanMartinez
Copy link
Contributor

Oh, I was surprised that you didn't add the instructions in this PR.

@jamesdbrock
Copy link
Member Author

Oh, I was surprised that you didn't add the instructions in this PR.

The instructions are here https://github.com/purescript-contrib/purescript-arraybuffer#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Polyfill is not defined when using spago bundle-app
2 participants